<template>
	<view class="container">
		<image src="/static/login/loginbg.png" class="bg"></image>
		<view class="title-area">
			<view class="arrow" @click="toBack">
			</view>
			<view class="title-text">
				订单详情
			</view>
		</view>
		<view class="pay-succsess-text">
			支付成功,请前往指定门店
		</view>
		<view class="shop-out">
			<view class="shop-content-area">
				<view style="padding-bottom: 30rpx;">
					<image src="/static/wash-car/shopwhite.png" mode="" class="icon-image"></image>
				</view>
				<view class="shop-content">
					<view class="shop-name">
						伟业汽车美容店 (人民路店)
					</view>
					<view class="shop-local">
						山阳区人民中路33号
					</view>
				</view>
			</view>
			<view class="planewhite">
				<image src="/static/wash-car/planewhite.png" mode="" class="icon-image"></image>
			</view>
		</view>
		<view class="order-detail-area">
			<view class="order-detail-title">
				订单详情
			</view>
			<view class="order-detail">
				<view class="order-detail-left">
					车辆精选
				</view>
				<view class="order-detail-right">
					¥ 39.90
				</view>
			</view>
			<view class="order-detail">
				<view class="order-detail-left">
					车辆附加费用
				</view>
				<view class="order-detail-right">
					¥ 0
				</view>
			</view>
			<view class="order-detail">
				<view class="order-detail-left">
					原价
				</view>
				<view class="order-detail-right">
					¥ 59.90
				</view>
			</view>
			<view class="order-detail">
				<view class="order-detail-left">
					店家优惠
				</view>
				<view class="order-detail-right" style="color: red;">
					-¥ 20
				</view>
			</view>
			<view class="order-detail">
				<view class="order-detail-left">
					优惠券
				</view>
				<view class="order-detail-right" style="color: red;">
					-¥ 10
				</view>
			</view>
			<view class="order-detail-bottom">
				<view class="order-detail-left">
					支付金额
				</view>
				<view class="order-detail-right" style="color: greenyellow;">
					¥ 29.9
				</view>
			</view>
		</view>
		<view class="order-detail-area" style="margin-top: 20rpx; margin-bottom: 200rpx;">
			<view class="order-detail-title">
				订单信息
			</view>
			<view class="order-detail">
				<view class="order-detail-left">
					订单号
				</view>
				<view class="order-detail-right" style="color: #a9a9a9;">
					12121212127878
				</view>
			</view>
			<view class="order-detail">
				<view class="order-detail-left">
					下单时间
				</view>
				<view class="order-detail-right" style="color: #a9a9a9;">
					2020.01.08  17:40
				</view>
			</view>
			<view class="order-detail">
				<view class="order-detail-left">
					车辆
				</view>
				<view class="order-detail-right" style="color: #a9a9a9;">
					奔驰FWE4/豫A98FHJ
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue'
	const toBack = () => {
		uni.navigateBack()
	}
</script>

<style scoped>
	.container {
		background-color: #eee;
		position: relative;
		z-index: 1;
		padding: 20rpx;
		height: 100dvh;
	}
	
	.bg {
		width: 100%;
		position: absolute;
		top: 0;
		left: 0;
		z-index: -1;
		height: 400rpx;
	}
	
	.title-area {
		display: flex;
		align-items: center;
		padding: 20rpx 30rpx 40rpx 20rpx;
		font-size: 34rpx;
		color: #FFFFFF;
	}
	
	.arrow {
		width: 14rpx;
		height: 14rpx;
		border-left-style: solid;
		border-left-width: 2rpx;
		border-bottom-style: solid;
		border-bottom-width: 2rpx;
		transform: rotate(45deg);
	}
	
	.title-text {
		flex-grow: 1;
		display: flex;
		justify-content: center;
	}
	.pay-succsess-text{
		color: #fff;
		font-size: 24rpx;
		padding: 0 30rpx;
	}
	.shop-out{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 20rpx;
	}
	.shop-content-area {
		display: flex;
		align-items: center;
		padding: 0 3rpx;
	}
	
	.shop-content {
		padding: 20rpx;
		color: #fff;
	}
	
	.shop-name {
		font-size: 26rpx;
		padding-bottom: 10rpx;
	}
	
	.shop-local {
		font-size: 20rpx;
		
	}
	
	.icon-image {
		width: 30rpx;
		height: 30rpx;
	}
	.planewhite{
		padding-top: 30rpx;
	}
	.order-detail-area{
		background-color: white;
		border-radius: 20rpx;
		padding: 20rpx;
	}
	.order-detail-title{
		padding: 20rpx 0;
		border-bottom: 5rpx #eee solid;
		font-size: 28rpx;
	}
	.order-detail{
		font-size: 24rpx;
		display: flex;
		justify-content: space-between;
		padding: 20rpx 0;
	}
	.order-detail-right{
		min-width: 100rpx;
		text-align: center;
	}
	.order-detail-bottom{
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20rpx 0;
		font-size: 26rpx;
		border-top: 5rpx #eee solid;
	}
</style>
